Skip to content

Conversation

@cryptobioz
Copy link
Contributor

In the GetPostgresCR function, we should return the k8s client error before checking the annotations. If not, deleting a Postgres resource will cause the linked PostgresUsers to enter an infinite reconciliation loop as the CR NotFound error will never be returned to the Reconcile function.

This PR should fix #118.

In the GetPostgresCR function, we should return the k8s client error
before checking the annotations. If not, deleting a Postgres resource
will cause the linked PostgresUsers to enter an infinite reconciliation
loop as the CR NotFound error will never be returned to the Reconcile
function.
@pcallewaert pcallewaert added the bug Something isn't working label Apr 4, 2025
@pcallewaert
Copy link
Contributor

@hitman99 Looks good to me, can we merge this?

@hitman99
Copy link
Member

hitman99 commented Apr 4, 2025

@pcallewaert lgtm, let's merge

@pcallewaert pcallewaert merged commit 6ace8ab into movetokube:master Apr 4, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

When postgres CR deleted before postgresusers CR it makes postgresusers finalizers to fail

3 participants